<?php
namespace app\wxapp\controller;
use think\Db;

class Home{

    public function index(){
        $token = request()->get('token');
        $data = Db::table('download')->where('id',1)->find();
        return view('',['token'=>$token,'data'=>$data]);
    }

    public function help()
    {
        $type = request()->get('type');
        return view($type);
    }

    public function order_detail()
    {
        $order_id = request()->request('order_id');
        $data = Db::table('order')->where('order_id',$order_id)->find();
        return view('',['data'=>$data]);
    }

}